/**  
 * Project Name:zj-main  
 * File Name:ProjectController.java  
 * Package Name:com.zhizai.zhujian.controller  
 * Date:2018年9月5日下午3:02:33  
 * Copyright (c) 2018, chenzhou1025@126.com All Rights Reserved.  
 *  
*/  
  
package com.zhizai.zhujian.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.github.pagehelper.PageInfo;
import com.zhizai.zhujian.entity.ProjectInfo;
import com.zhizai.zhujian.service.ProjectInfoService;

/**  
 * ClassName:ProjectController <br/>  
 * Function: TODO ADD FUNCTION. <br/>  
 * Reason:   TODO ADD REASON. <br/>  
 * Date:     2018年9月5日 下午3:02:33 <br/>  
 * @author   feichao  
 */
@Controller
@RequestMapping("/project")
public class ProjectController
{
    @Autowired
    private ProjectInfoService projectInfoService;
    
    @RequestMapping(value = "/selectProject", method = RequestMethod.POST)
    @ResponseBody
    public List<ProjectInfo> selectProject(@RequestBody ProjectInfo projectInfo)
    {
        return projectInfoService.getProjectList(projectInfo);
    }
    
    @RequestMapping(value = "/getProject", method = RequestMethod.POST)
    @ResponseBody
    public PageInfo<ProjectInfo> getProjectInfos(String pageNum)
    {
        return projectInfoService.getProjects(pageNum);
    }
}
  
